//
//  model.swift
//  searchbartest
//
//  Created by 李小骥 on 2017/10/18.
//  Copyright © 2017年 李小骥. All rights reserved.
//

import Foundation
struct SearchZixuanguResult {
    var code:String
    var message:String
    //登录状态将来改成枚举
    var data:SearchZixuanguData
    init(code:String, message:String, data:SearchZixuanguData){
        //后续增加内容是否为空“”的判断
        self.code = code
        self.message = message
        self.data = data
    }
}
struct SearchZixuanguData {
    var stockType:String
    var market:String
    var name:String
    var state:Int
    var currcapital:String
    var profit_four:String
    var code:String
    var totalcapital:String
    var mgjzc:String
    var pinyin:String
    var listing_date:String
    var ct:String
    init(stockType:String, market:String, name:String, state:Int, currcapital:String, profit_four:String, code:String, totalcapital:String, mgjzc:String, pinyin:String, listing_date:String, ct:String) {
        self.stockType=stockType
        self.market=market
        self.name=name
        self.state=state
        self.currcapital=currcapital
        self.profit_four=profit_four
        self.code=code
        self.totalcapital=totalcapital
        self.mgjzc=mgjzc
        self.pinyin=pinyin
        self.listing_date=listing_date
        self.ct=ct
    }
}
//{"code":"40000",
//    "message":"ok",
//    "data":[{
//    "stockType":"A",
//    "market":"sz",
//    "name":"\u4e1c\u65b9\u5e02\u573a",
//    "state":1,
//    "currcapital":"121823.6445",
//    "profit_four":"2.0393",
//    "code":"000301",
//    "totalcapital":"121823.6445",
//    "mgjzc":"2.911102",
//    "pinyin":"dfsc",
//    "listing_date":"2000-05-29",
//    "ct":"2016-10-16 15:40:47.306"}]}

